package server;



import java.util.List;
import dao.LoginDao;
import pojo.Manager;

public class LoginServer {
	
	public Manager judgeLogin(String num,String password){
		LoginDao loginDao = new LoginDao();
		List<Manager> list = loginDao.selectLogin(num,password);
		if(list == null){
			System.out.println("list == null");
		}
		if(list.size() == 0){
			return null;
		}
		return list.get(0);
		
	}
}
